1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| module.exports = { apps : [{ name: 'demo', script: 'demo.js', args: '-a 1 -b 2', instances: 1, exec_mode: 'cluster', max_memory_restart: '2G', watch: true, ignore_watch: ["[\/\\]\./", "node_modules"], max_memory_restart: '1G', env: { NODE_ENV: 'development' }, env_production: { NODE_ENV: 'production' }, log_date_format: "YYYY-MM-DD HH:mm:ss", error_file: './logs/server-error.log', out_file: './logs/server-data.log', listen_timeout: 8000, kill_timeout: 1000, max_restarts: 10, restart_delay: 80000, autorestart: true, cron_restart: '0 15 1 ? * *', }], };
|